package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.ProjectPlanRequestDto;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingPlanVo;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingProjectMapper {
    List<NursingProjectVo> selectByPage(String name, Integer status);

    void addNursingProject(NursingProjectVo nursingProjectVo);

    @Select("select * from nursing_project where id = #{id}")
    NursingProjectVo getById(Long id);

    void updateNursingProject(NursingProjectVo nursingProjectVo);

    void ooo(long id, Integer status);

    void deleteById(Long id);

    List<NursingProjectVo> getAll();

    @Select("select * from nursing_plan")
    List<NursingPlanVo> getAllPlan();

    NursingProject getByName(String name);

    @Select("select * from nursing_project where name = #{name} and id != #{id}")
    NursingProject bbb(NursingProjectVo nursingProjectVo);


//    void addNursingPlan(ProjectPlanRequestDto projectPlanRequestDto);
//
//    List<NursingPlanVo> selectByPagePlan(String name, Integer status);
}
